<!-- 这个页面融到主界面index里面了，后期弃掉 -->
<template>
	<view class="page">
		<uni-nav-bar background-color="#00a9ff" title="咨询记录" color="white" :fixed="true"
		 right-icon="bars" @clickRight="showEdit" statusBar="true"/>
		 
		<uni-card v-for="(item,index) in records"
		 :title="item.title" :sub-title="item.time" :extra="item.state"
		 style="border-radius: 10px; background-color: #ffffff90;" shadow="0,0,0,0" :border="false">
			<text>{{item.recommend}}</text>
		</uni-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				records:[
					{title:'记录1',time:'2024-5-16 20:10',state:'已完成'},
					{title:'记录2',time:'2024-5-16 20:20',state:'待测评'}
				],
				// records:{
				// 	title:'',
				// 	time:'',
				// 	state:''
				// }
			}
		},
		methods: {
			showEdit(){
				uni.showActionSheet({
					itemList:['批量编辑','按时间排序','按名称排序','按状态排序'],
					itemColor:'#00a9ff',
					
					success:function(res){
						switch (res.tapIndex){
							case 0:
							
								break;
							default:
								break;
						}
					}
				})
			}
			
		}
	}
</script>

<style>

</style>
